package myjava.processi;

// PRIORITY! mi pare che non vada un cazzo!

public class Root3 {

   public static void main(String[] args) {

      Runnable r = new Runnable () {
         public void run() {
            for (int i = 0; i < 3; i++) {
               System.out.println("hello I am " + Thread.currentThread().getName());
//               try {
//                  Thread.sleep(100);
//               } catch (InterruptedException ex) {
//                  ;
//               }
            }
         }
      };

      Thread t1 = new Thread(r);
      Thread t2 = new Thread(r);
      t1.setPriority(1);
      t2.setPriority(10);
      t1.start();
      t2.start();
   }
}
